<?php

class Page extends Eloquent {

  protected $softDelete = true;
  public static $rules = array(
      'tempestuser_id' => 'exists:users,id|integer|required',
      'title'          => 'required|between:1,50',
      'order'          => 'integer|required|between:1,1000',
  );

  public function user() {
    return $this->belongsTo('Tempestuser');
  }

  public function blocks() {
    return $this->hasMany('Block');
  }

}